package com.sun.showcase.client.domain.mall;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

public class ShoppingCart implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
    /**
     * 主键ID       db_column: id 
     */	
	private java.lang.String id;
    /**
     * 用户账号       db_column: user_id 
     */	
	private java.lang.String userId;
    /**
     * 用户姓名       db_column: user_name 
     */	
	private java.lang.String userName;
    /**
     * 店铺主键ID       db_column: shop_id 
     */	
	private java.lang.String shopId;
    /**
     * 店铺名称       db_column: shop_name 
     */	
	private java.lang.String shopName;
    /**
     * 店铺商品主键ID       db_column: goods_id 
     */	
	private java.lang.String goodsId;
    /**
     * 店铺商品名称       db_column: goods_name 
     */	
	private java.lang.String goodsName;
    /**
     * 商品主图地址       db_column: main_picture_address 
     */	
	private java.lang.String mainPictureAddress;
    /**
     * 数量       db_column: buy_num 
     */	
	private java.lang.Integer buyNum;
    /**
     * 有效状态       db_column: active_flag 
     */	
	private java.lang.String activeFlag;
    /**
     * 创建人ID       db_column: create_by 
     */	
	private java.lang.String createBy;
    /**
     * 创建人姓名       db_column: create_by_name 
     */	
	private java.lang.String createByName;
    /**
     * 创建时间       db_column: create_date 
     */	
	private java.util.Date createDate;
    /**
     * 修改人ID       db_column: modified_by 
     */	
	private java.lang.String modifiedBy;
    /**
     * 修改人姓名       db_column: modified_by_name 
     */	
	private java.lang.String modifiedByName;
    /**
     * 修改时间       db_column: modified_date 
     */	
	private java.util.Date modifiedDate;
	private String skuId;
	private String skuJsonValue;
	private String skuAttributeId;
	private Double sellPrice;
	private String freightId;
	//columns END

	public ShoppingCart(){
	}

	public ShoppingCart(
		java.lang.String id
	){
		this.id = id;
	}

	public String getFreightId() {
		return freightId;
	}

	public void setFreightId(String freightId) {
		this.freightId = freightId;
	}

	public String getSkuId() {
		return skuId;
	}

	public void setSkuId(String skuId) {
		this.skuId = skuId;
	}

	public String getSkuJsonValue() {
		return skuJsonValue;
	}

	public void setSkuJsonValue(String skuJsonValue) {
		this.skuJsonValue = skuJsonValue;
	}

	public String getSkuAttributeId() {
		return skuAttributeId;
	}

	public void setSkuAttributeId(String skuAttributeId) {
		this.skuAttributeId = skuAttributeId;
	}

	public Double getSellPrice() {
		return sellPrice;
	}

	public void setSellPrice(Double sellPrice) {
		this.sellPrice = sellPrice;
	}

	public void setId(java.lang.String value) {
		this.id = value;
	}
	
	public java.lang.String getId() {
		return this.id;
	}
	public void setUserId(java.lang.String value) {
		this.userId = value;
	}
	
	public java.lang.String getUserId() {
		return this.userId;
	}
	public void setUserName(java.lang.String value) {
		this.userName = value;
	}
	
	public java.lang.String getUserName() {
		return this.userName;
	}
	public void setShopId(java.lang.String value) {
		this.shopId = value;
	}
	
	public java.lang.String getShopId() {
		return this.shopId;
	}
	public void setShopName(java.lang.String value) {
		this.shopName = value;
	}
	
	public java.lang.String getShopName() {
		return this.shopName;
	}
	public void setGoodsId(java.lang.String value) {
		this.goodsId = value;
	}
	
	public java.lang.String getGoodsId() {
		return this.goodsId;
	}
	public void setGoodsName(java.lang.String value) {
		this.goodsName = value;
	}
	
	public java.lang.String getGoodsName() {
		return this.goodsName;
	}
	public void setMainPictureAddress(java.lang.String value) {
		this.mainPictureAddress = value;
	}
	
	public java.lang.String getMainPictureAddress() {
		return this.mainPictureAddress;
	}
	public void setBuyNum(java.lang.Integer value) {
		this.buyNum = value;
	}
	
	public java.lang.Integer getBuyNum() {
		return this.buyNum;
	}
	public void setActiveFlag(java.lang.String value) {
		this.activeFlag = value;
	}
	
	public java.lang.String getActiveFlag() {
		return this.activeFlag;
	}
	public void setCreateBy(java.lang.String value) {
		this.createBy = value;
	}
	
	public java.lang.String getCreateBy() {
		return this.createBy;
	}
	public void setCreateByName(java.lang.String value) {
		this.createByName = value;
	}
	
	public java.lang.String getCreateByName() {
		return this.createByName;
	}
	public void setCreateDate(java.util.Date value) {
		this.createDate = value;
	}
	
	public java.util.Date getCreateDate() {
		return this.createDate;
	}
	public void setModifiedBy(java.lang.String value) {
		this.modifiedBy = value;
	}
	
	public java.lang.String getModifiedBy() {
		return this.modifiedBy;
	}
	public void setModifiedByName(java.lang.String value) {
		this.modifiedByName = value;
	}
	
	public java.lang.String getModifiedByName() {
		return this.modifiedByName;
	}
	public void setModifiedDate(java.util.Date value) {
		this.modifiedDate = value;
	}
	
	public java.util.Date getModifiedDate() {
		return this.modifiedDate;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof ShoppingCart == false) return false;
		if(this == obj) return true;
		ShoppingCart other = (ShoppingCart)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

